package com.tang.model.proxy.dynamicproxy.cglibProxy;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/17 6:42
 * @Desc
 * @Remarks
 */
public class CglibProxyTest {
    public static void main(String[] args) {
        CglibMatchmaker cglibMatchmaker = new CglibMatchmaker();
        Programmer instance = (Programmer) cglibMatchmaker.getInstance(Programmer.class);
        instance.findLove();
        System.out.println("====================");
        GenericWorker genericWorker = (GenericWorker) cglibMatchmaker.getInstance(GenericWorker.class);
        genericWorker.findLove();
    }
}
